<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>列表渲染中key</title>
</head>
<body>


<div id="app">



</div>


</body>
<script src="../lib/react/react.development.js"></script>
<script src="../lib/react/react-dom.development.j.js"></script>
<script src="https://cdn.staticfile.org/babel-standalone/6.26.0/babel.min.js"></script>
<script type="text/babel">


    const nums = [1,3,5,7];


    const  boxes = nums.map((num)=><li key={num.toString()}>{num}</li>);

    ReactDOM.render(<ul>{boxes}</ul>,document.getElementById('app'));



</script>




</html>